#include <iostream>
#include "waiter.h"


int main(int argv, char**argc)
{
    printf("************  test hello zc!!!   **************\n");
    /* add test code! */
	//(假装)动态确定套餐种类
	MealBuilder *mb = new SubMealBuilderB();
	//服务员是指挥者
	KFCWaiter *waiter = new KFCWaiter(); 
	//服务员准备套餐
	waiter->setMealBuilder(mb);
	//客户获得套餐 
	Meal meal = waiter->construct(); 
	
	std::cout << "套餐组成：" << std::endl
		 << meal.getFood() << std::endl
		 << meal.getDrink() << std::endl;


    return 0;
}